﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/Template1.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>:::แฮปปี้กับทุกวัน:::</title>
<!-- InstanceEndEditable --> 
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">

<link href="/bp3/page/share/happy.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//-->
</script>


<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="109" height="30"><img src="/bp3/dpromptimage/website/images/share/index/bg_01.jpg" width="109" height="30"></td>
          <td width="807" height="30"><img src="/bp3/dpromptimage/website/images/share/index/bg_02.jpg" width="807" height="30"></td>
          <td width="144" height="30"><img src="/bp3/dpromptimage/website/images/share/index/bg_03.jpg" width="88" height="30"></td>
        </tr>
        <tr> 
          <td width="109"><img src="/bp3/dpromptimage/website/images/share/index/bg_04.jpg" width="109" height="52"></td>
          <td><table width="806" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="790"><img src="/bp3/dpromptimage/website/images/share/index/h_01.jpg" width="790" height="52"></td>
                <td width="16"><img src="/bp3/dpromptimage/website/images/share/index/h_02.jpg" width="17" height="52"></td>
              </tr>
            </table></td>
          <td><img src="/bp3/dpromptimage/website/images/share/index/bg_05.jpg" width="88" height="52"></td>
        </tr>
        <tr> 
          <td background="/bp3/dpromptimage/website/images/share/index/bg_06.jpg">&nbsp;</td>
          <td height="0" valign="top">
<table width="807" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td valign="top"> 
                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="790">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td><table width="790" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td width="166" valign="bottom"> <div align="center"><img src="/bp3/dpromptimage/website/images/share/index/logo.jpg" width="122" height="46" vspace="13"></div></td>
                            <td width="624" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="401">&nbsp;</td>
                                  <td><img src="/bp3/dpromptimage/website/images/share/index/sup_head.jpg" width="212" height="49"></td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td valign="top">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td align="left" valign="top" class="font"> 
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td>&nbsp;</td>
                            <td bgcolor="#dadada"><table width="100%" border="0" cellspacing="1" cellpadding="0">
                                <tr align="center" valign="top" bgcolor="#FFFFFF"> 
                                  <td width="107" height="21"><img src="/bp3/dpromptimage/website/images/share/index/h_color_01.jpg" width="101" height="10"></td>
                                  <td width="107" height="21" valign="top" bgcolor="#FFFFFF"><img src="/bp3/dpromptimage/website/images/share/index/h_color_02.jpg" width="101" height="10"></td>
                                  <td width="107" height="21" valign="top" bgcolor="#FFFFFF"><img src="/bp3/dpromptimage/website/images/share/index/h_color_03.jpg" width="101" height="10"></td>
                                  <td width="107" height="21" valign="top" bgcolor="#FFFFFF"><img src="/bp3/dpromptimage/website/images/share/index/h_color_04.jpg" width="101" height="10"></td>
                                  <td width="107" height="21" valign="top" bgcolor="#FFFFFF"><img src="/bp3/dpromptimage/website/images/share/index/h_color_05.jpg" width="101" height="10"></td>
                                  <td width="107" height="21" valign="top" bgcolor="#FFFFFF"><img src="/bp3/dpromptimage/website/images/share/index/h_color_06.jpg" width="101" height="10"></td>
                                  <td width="107" height="21" valign="top" bgcolor="#FFFFFF"> <a href="/bp3/bin/DpromptIndex" ><img src="/bp3/dpromptimage/website/images/share/index/h_color_07.jpg" width="101" height="10"  border ="0"></a></td>
                                </tr>
                              </table></td>
                            <td>&nbsp;</td>
                          </tr>
                          <tr> 
                            <td>&nbsp;</td>
                            <td valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="107" valign="top" bgcolor="#dadada"><table width="107" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td height="107" valign="top"><table width="107" height="107" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                              <td background="/bp3/dpromptimage/website/images/share/index/bg_smile.gif" bgcolor="#FFFFFF" class="borderleftright">&nbsp;</td>
                                            </tr>
                                          </table></td>
                                      </tr>
                                      <tr>
                                        <td><table width="107" border="0" cellspacing="1" cellpadding="0">
                                            <tr> 
                                              <td height="107" background="/bp3/dpromptimage/website/images/share/index/p_bule.jpg" bgcolor="#FFFFFF">&nbsp;</td>
                                            </tr>
                                            <tr> 
                                              <td height="107" bgcolor="#FFFFFF"><img src="/bp3/dpromptimage/website/images/share/index/p_acc_01.jpg" width="105" height="105"></td>
                                            </tr>
                                            <tr> 
                                              <td height="107" background="/bp3/dpromptimage/website/images/share/index/bg_smile.gif" bgcolor="#FFFFFF">&nbsp;</td>
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table></td>
                                  <td align="left" valign="top"><!-- InstanceBeginEditable name="information" --><img src="/bp3/dpromptimage/website/images/share/all/p_subhead_01.jpg" width="160" height="70">        					                              
  <script language="JavaScript">
<!--
function doSubmit() 
{
	//var phone = document.form.lisPhoneNo.value;
	var f = document.forms[0]; 
	
	if( !isCorrectMobileFormat1(f.m1) ) {
			f.m1.focus();
			return;
	}
	if( !isCorrectMobileFormat4(f.m2) ) {
			f.m2.focus();
			return;
	}
	if( !isCorrectMobileFormat4(f.m3) ) {
			f.m3.focus();
			return;
	}			
	
	if( !isCorrectSerialFormat() ) {
		document.form.txtSerialNo.focus();
   		return;
	}
	//if( !isCorrectIdFormat() ) {
	//	document.form.txtIdNo.focus();
   	//	return;
	//}	
	window.form.submit();
}
function next1() {
	var f = document.forms[0];
	if(f.m1.value.length == 1) {
		f.m2.focus();
	}
}
function next2() {
	var f = document.forms[0];
	if(f.m2.value.length == 4) {
		f.m3.focus();
	}
}
function gotoIndex()
{
  window.location = "/bp3/bin/Dspc/DpromptWelcome";  
}
function gotoIndex1()
{
  
   JavaScript:location.href='/bp3/bin/DpromptIndex';
}
function CheckButton()
{
    var f = document.forms[0]; 
	if ( document.form.radiobutton[0].checked == true )
	{
			f.p1.value="";			
			f.p1.blur();
			f.p2.value="";			
			f.p2.blur();
			f.p3.value="";			
			f.p3.blur();			
			f.m1.focus();			
	}
	else if ( document.form.radiobutton[1].checked == true )
	{		
			f.m1.value="";			
			f.m1.blur();
			f.m2.value="";			
			f.m2.blur();
			f.m3.value="";			
			f.m3.blur();			
			f.p1.focus();			
	}
}

function isCorrectMobileFormat1(obj)
{	
	//var f = document.forms[0];    
	var serialNo = /^[0-9]{1}$/;	
	var errorMessage = "";	
	if ( !serialNo.test(obj.value) ) errorMessage += "กรอกหมายเลขโทรศํพท์มือถือไม่ถูกต้อง";				
	if ( errorMessage.length > 0 ) {
		alert("รูปแบบข้อมูลไม่ถูกต้อง :\n\n" + errorMessage);
		return false;
	}		
	return true;
}

function isCorrectMobileFormat4(obj)
{	
	//var f = document.forms[0];    
	var serialNo = /^[0-9]{4}$/;	
	var errorMessage = "";	
	if ( !serialNo.test(obj.value) ) errorMessage += "หมายเลขโทรศัพท์ไม่ถูกต้องต้องมีเลขเพียง 4 หลักเท่านั้น";				
	if ( errorMessage.length > 0 ) {
		alert("รูปแบบข้อมูลไม่ถูกต้อง :\n\n" + errorMessage);
		return false;
	}		
	return true;
}

function isCorrectSerialFormat()
{	
	var f = document.forms[0].txtSerialNo;	 		
	var errorMessage = "กรุณากรอกหมายเลขบัตรเติมเงิน \n";
	
	if ( !isInt(f) || (f.value.length <7) ) {		
		alert("รูปแบบข้อมูลไม่ถูกต้อง :\n\n" + errorMessage);
		return false;
		
	}
	return true;	
}

function isInt(textObj)
{
  var newValue = textObj.value;
  newValue = trim(newValue);
  var newLength = newValue.length;
 
  for(var i = 0;i != newLength; i++)  
  {
     aChar = newValue.substring(i,i+1);
     if(aChar < "0" || aChar > "9") {return false;}
  }
  return true;     
}

function trim(s) {
  while (s.substring(0,1) == ' ') {
    s = s.substring(1,s.length);
  }
  while (s.substring(s.length-1,s.length) == ' ') {
    s = s.substring(0,s.length-1);
  }
  return s;
}


function isCorrectIdFormat()
{	
	var f = document.forms[0];    
	var IdNo = /^[0-9]{6}$/;	
	var errorMessage = "";
	var IdNovalue = f.txtIdNo.value;
	IdNovalue = trim(IdNovalue);
	if ( !IdNo.test(IdNovalue) ) errorMessage += "รหัสเติมเงินไม่ถูกต้อง\n";				
	if ( errorMessage.length > 0 ) {
		alert("รูปแบบข้อมูลไม่ถูกต้อง :\n\n" + errorMessage);
		return false;
	}		
	return true;
}

//-->
</script>
            


				  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="10%" align="center">&nbsp;</td>
                                          <td width="84%" align="center"><img src="/bp3/dpromptimage/website/images/share/all/h_03.gif" width="160" height="19" align="left"></td>
                                          <td width="6%" align="center">&nbsp;</td>
                                        </tr>
                                        <tr>
                                          <td colspan="3" align="center">
										   <form name="form" method="post" action="DpromptRefillVoucher"  > 										
                                            <!--SVLT.LOOP:ERROR_BOX-->
                                            <table border="0" cellspacing="1" cellpadding="2" width="80%" >
                                              <tr> 
                                                <td align="center"class="textredbold"><strong>ระบบไม่สามารถดำเนินการได้เนื่องจาก</strong>
						</td>
                                              </tr>
                                              <tr> 
                                                <td align="center" class="textrednormal">
                                                  <!--SVLT.VAR:ERROR_MSG-->
                                       
											   </td>
                                              </tr>
                                            </table>
                                            <!--SVLT.END:ERROR_BOX-->
                                            <br>
                                         <table  border="0" cellspacing="1" cellpadding="2" width="80%" bgcolor="#FF0000">
                                              <tr bgcolor="#FF0000"> 
                                                <td colspan="2"> <div align="center" class="textwhite"><b>กรุณากรอกข้อมูล</b></div></td>
                                                
                                              </tr>
                                              <tr bgcolor="#FFFFFF"> 
                                                <td width="314" height="2"  class="textgraybold">หมายเลขโทรศัพท์มือถือ<br>
                                                </td>

                                                <td width="189" height="0" align="center"  class="textgraynormal">                                
<input type="text" onKeyPress=next1() name="m1" size="1" maxlength="1" value="<!--SVLT.VAR:m1-->" class="textgraynormal"  >
-
<input type="text"  onKeyPress=next2() name="m2" size="4" maxlength="4" value="<!--SVLT.VAR:m2-->" class="textgraynormal" >
-
<input type="text" name="m3" size="4" maxlength="4" value="<!--SVLT.VAR:m3-->"class="textgraynormal" >
                                                </td>
						
                                              </tr>
                                            
                                              <tr bgcolor="#FFFFFF" > 
                                                <td height="2" width="320"><span class="textgraybold">หมายเลขบัตร</span>
						<span class="textgraynormal"><br>
						7 หลักหรือมากกว่า ที่ปรากฏบนบัตรเติมเงิน </span>
                                                </td>
                                                <td   width="169"  height="2" align="center" class="textgraynormal">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                                                  <input type="text"  name="txtSerialNo" size="23" maxlength="15"  class="textgraynormal"> 
                                                </td>
                                              </tr>
                                              <tr bgcolor="#FFFFFF"  > 
                                                <td   height="2" width="320"><span class="textgraybold">รหัสบัตรเติมเงิน</span>
						<span class="textgraynormal"><br>
						6 หลักหรือมากกว่า ที่ปรากฏบนบัตรเติมเงิน</span>
                                                </td>
                                                <td width="169" height="2" align="center"class="textgraynormal">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                                                  <input type="text" name="txtIdNo" size="23" maxlength="15"  class="textgraynormal"> 
                                                </td>
                                              </tr>
                                         
                                            </table>
					    <table border="0" cellspacing="1" cellpadding="2" width="80%">
					    <tr>
											<td align="right">
										<img src="/bp3/dpromptimage/website/images/share/all/b_ok.jpg" width="67" height="25" onClick="doSubmit()">
										 <img src="/bp3/dpromptimage/website/images/share/all/b_cancel.jpg" width="67" height="25" onClick="gotoIndex()"> 
										 <br>
										  <br>
										  </td>
										</tr>
					    </table>
											
										    <!--SVLT.LOOP:success-->
                                          <table  border="0" cellspacing="1" cellpadding="2" width="80%" bgcolor="#FF0000">
                                              <tr> 
                                                <td align="center" bgcolor="#FF0000"  class="textwhite" ><b>รายการของคุณสำเร็จแล้ว ขอบคุณที่ใช้บริการค่ะ</b></td>
                                              </tr>
                                              <tr> 
                                                <td bgcolor="#FFFFFF" class="textgraynormal" height="2" width="489">ยอดเงินคงเหลือ<strong>
                                                  <!--SVLT.VAR:total--> 
                                                บาท</strong></td>
                                              </tr>
                                              <tr> 
                                                <td bgcolor="#FFFFFF" class="textgraynormal" height="2" width="489">ใช้ได้ถึงวันที่ 
                                                                                                    <strong>
<!--SVLT.VAR:expire-->
)วัน                                                  </strong></td>
                                              </tr>
						
					     
                                            </table>
					<table  border="0" cellspacing="1" cellpadding="2" width="80%">
					  <tr>
					    <td align="right"  bgcolor="#FFFFFF">
					    <a href="/bp3/bin/Dspc/DpromptWelcome" ><img name="Image13" border="0" src="/bp3/dpromptimage/website/images/share/all/b_index.jpg" width="89" height="26"></a>&nbsp;
					    <a href="JavaScript:history.back()" ><img name="Image14" border="0" src="/bp3/dpromptimage/website/images/share/all/b_back.jpg" width="96" height="26"></a>
					   
					    </td>
					    </tr>
					</table>
						
                                            <!--SVLT.END:success-->
					   
										   </form>
										</td>
                                        </tr>
                                    </table>
										 
										 
								
										 
										 
										 
									                                          
                                  <!-- InstanceEndEditable --></td>
                                  <td width="107" valign="top"><table width="107" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td height="107" valign="top"><table width="107" height="107" border="0" cellpadding="0" cellspacing="0">
                                            <tr> 
                                              <td valign="middle" background="/bp3/dpromptimage/website/images/share/index/bg_smile.gif" bgcolor="#FFFFFF" class="borderleftright"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="104" height="95">
                                                  <param name="movie" value="/bp3/dpromptimage/website/flash/hippy_icon02.swf">
                                                  <param name="quality" value="high">
                                                  <embed src="/bp3/dpromptimage/website/flash/hippy_icon02.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="104" height="95"></embed></object></td>
                                            </tr>
                                          </table></td>
                                      </tr>
                                      <tr> 
                                        <td bgcolor="#dadada"><table width="100%" border="0" cellspacing="1" cellpadding="0">
                                            <tr> 
                                              <td height="107" valign="bottom" background="/bp3/dpromptimage/website/images/share/index/bg_smile.gif" bgcolor="#FFFFFF"><img src="/bp3/dpromptimage/website/images/share/index/p_acc_02.jpg" width="104" height="88"></td>
                                            </tr>
                                            <tr> 
                                              <td height="107" valign="bottom" background="/bp3/dpromptimage/website/images/share/index/bg_smile.gif" bgcolor="#FFFFFF">&nbsp;</td>
                                            </tr>
                                            <tr> 
                                              <td height="107" valign="bottom" background="/bp3/dpromptimage/website/images/share/index/bg_smile.gif" bgcolor="#FFFFFF">&nbsp;</td>
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table></td>
                            <td>&nbsp;</td>
                          </tr>
                          <tr> 
                            <td>&nbsp;</td>
                            <td width="749" bgcolor="#FFFFFF"><br> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td valign="bottom"><div align="left" class="textgraylight">&copy; 
                                      Copyright 2003 - 2005 Total Access Communication 
                                      Plc. Developed by Digithais Network Co., 
                                      Ltd.</div></td>
                                  <td width="181" align="right"><img src="/bp3/dpromptimage/website/images/share/index/logo.gif" width="85" height="44"></td>
                                </tr>
                              </table></td>
                            <td>&nbsp;</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr> 
                      <td align="left" class="font"> <div align="left"><br>
                        </div></td>
                    </tr>
                  </table></td>
                <td width="17" background="/bp3/dpromptimage/website/images/share/index/p_02.jpg">&nbsp;</td>
              </tr>
            </table>
          </td>
          <td background="/bp3/dpromptimage/website/images/share/index/bg_07.jpg">&nbsp;</td>
        </tr>
        <tr>
          <td><img src="/bp3/dpromptimage/website/images/share/index/bg_08.jpg" width="109" height="31"></td>
          <td><table width="807" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="790"><img src="/bp3/dpromptimage/website/images/share/index/bg_09.jpg" width="790" height="31"></td>
                <td><img src="/bp3/dpromptimage/website/images/share/index/bg_10.jpg" width="17" height="31"></td>
              </tr>
            </table></td>
          <td><img src="/bp3/dpromptimage/website/images/share/index/bg_11.jpg" width="88" height="31"></td>
        </tr>
        <tr> 
          <td width="109" height="45" background="/bp3/dpromptimage/website/images/share/index/bg_12.jpg"> 
            <p><br>
            </p>
            <p><br>
            </p></td>
          <td height="45" background="/bp3/dpromptimage/website/images/share/index/bg_13.jpg">&nbsp;</td>
          <td height="45" background="/bp3/dpromptimage/website/images/share/index/bg_14.jpg">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>

